﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ExtControl.ascx.cs" Inherits="Script_ExtControl" %>
<link rel="stylesheet" type="text/css" href="<%= Root %>/script/resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="<%= Root %>/script/resources/css/xtheme-gray.css" />
<link rel="stylesheet" type="text/css" href="<%= Root %>/script/css-base.aspx" />
<script type="text/javascript" src="<%= Root %>/script/jquery.js"></script>
<script type="text/javascript" src="<%= Root %>/script/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="<%= Root %>/script/ext-all.js"></script>
<script type="text/javascript" src="<%= Root %>/script/script-base.aspx"></script>
<script type="text/javascript" src="<%= Root %>/script/ext-lang-zh_CN.js"></script>
<script type="text/javascript">
    Ext.onReady(function() { 
         <% 
            if(HasMessage)
            {
         %>
            Ext.Msg.alert("<%= Title %>", "<%= Msg %>", function(){
                <% if(!string.IsNullOrEmpty(Link)) { %>
                    location = '<%= Link %>';
                <% } %>
            });
         <%
            }
          %>
    });
</script>